package com.hoo.mapper.equipment;

import java.util.List;
import java.util.Map;

import com.hoo.entity.equipment.InvoiceMachine;
import com.hoo.entity.equipment.InvoiceRule;
import com.hoo.form.equipment.InvoiceMachineForm;
import com.hoo.mapper.account.SqlMapper;

public interface InvoiceMachineMapper extends SqlMapper {
	
	public List<InvoiceMachine> getAllInvoiceMachine();
	
	public InvoiceMachine getInvoiceMachine(InvoiceMachineForm form); 
	
	public int insertInvoiceMachine(InvoiceMachine invoiceMachine);
	
	public int updateInvoiceMachine(InvoiceMachine invoiceMachine);
	
	public int deleteInvoiceMachineById(int id);

	public int getInvoiceMachineCount(InvoiceMachineForm form);

	public List<InvoiceMachine> getInvoiceMachineList(InvoiceMachineForm form);
	
	public InvoiceRule getInvoiceRule();

	public InvoiceMachine getInvoiceMachineById(int id);

	public int updateInvoiceRule(InvoiceRule rule);

	public int updateInvoiceMachineConnectStatus(int status);

	public int updateInvoiceMachineConnectStatusByIP(Map<String, Object> map);

}
